<template>
  <div>
    <Edit @goto-list="gotoList" ref="edit" />

    <MkDrawer title="" v-model="showDrawer" :with-header="false" size="80%" :headerStyle="{ display: 'none' }">
      <List @goto-edit="gotoEdit" ref="list" />
    </MkDrawer>
  </div>
</template>

<script setup lang="ts">
// 手工入库
defineOptions({
  name: '标本绑定'
})
// 单表List基本操作
import useIndexMastControls from '/@/hooks/useIndexMastControls'
import Edit from './edit.vue'
import List from './list.vue'
import { reactive,toRefs } from 'vue';

const refs = reactive({
  edit: undefined,
  list: undefined
})
const { edit, list } = toRefs(refs)
const { showDrawer, gotoList, gotoEdit } = useIndexMastControls(edit, list);
</script>

<style lang='scss' scoped>
/* 在这里添加你的样式 */
</style>